<template>
	<a-modal  visible="true" :destroyOnClose="true" width="1366px" :footer="null" title="我要报修" @cancel="closeModal">
		<iframe :src="pageUrl" width="100%" height="680px" style="border: 0"></iframe>
	</a-modal>
</template>
<script setup>
	import { ref, onMounted } from 'vue';
	import tool from '@/utils/tool';
	import { KEY_CONST } from '@/constants/system-const';
	const pageUrl = ref(''); 
	const emit = defineEmits(['closeModal'])
    const closeModal = function(){
        emit('closeModal');
    }; 
	onMounted(() => {
		const token = tool.readLocalStorage(KEY_CONST.USER_TOKEN);
		pageUrl.value = import.meta.env.VITE_APP_PAGE_URL + '/i/system/view.jsp?viewid=i_like_to_apply_for_repair_view&type=自主报修&token=' + token;
	});
</script>
<style lang="less" scoped></style>
